Skip to content

chore(deps): update dependency csharpier.msbuild to 1.4.1 - #661

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/csharpier.msbuild-1.x
Nov 22, 2026
Merged

renovate[bot] merged 1 commit into
mainfrom
renovate/csharpier.msbuild-1.x

Conversation

@renovate

@renovate renovate Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
CSharpier.MSBuild 1.4.0 → 1.4.1 age confidence

Release Notes

belav/csharpier (CSharpier.MSBuild)

v1.4.1

Compare Source

What's Changed

Fix: Trailing lambda with an expression body that breaks is formatted badly #​1941

1.4.0 started keeping the arguments before a trailing lambda on the same line as the method name. When the lambda had an expression body that did not fit on one line, the body started on the same line as the => and the closing parenthesis was not moved to its own line.

// input & expected output
CallMethod(one, x =>
    x == 1 ? "one"
    : x == 2 ? "two"
    : "three"
);

CallMethod(one, x =>
    from y in x
    group y by y.Key into g
    select new
    {
        g.Key.Id,
        g.Key.Alias,
        Count = g.Count(),
    }
);

// 1.4.0
CallMethod(one, x => x == 1 ? "one"
    : x == 2 ? "two"
    : "three");

CallMethod(one, x => from y in x group y by y.Key into g select new
    {
        g.Key.Id,
        g.Key.Alias,
        Count = g.Count(),
    });
Fix: Raw string literals are formatted inconsistently #​1940

A raw string literal assigned to a variable kept its opening quotes on the same line as the =. In other places, such as a lambda body, an expression bodied member, a property initializer or a cast, the opening quotes moved to the next line and the contents were indented one level further than the quotes. These cases are now formatted the same way as a variable.

// input & expected output
Func<int, string> lambda = _ => """
    SomeRawString
    """;

CallMethod(_ => """
    SomeRawString
    """
);

var cast = (object)"""
    SomeRawString
    """;

class ClassName
{
    string Property { get; } = """
        SomeRawString
        """;

    string Method() => """
        SomeRawString
        """;
}

// 1.4.0
Func<int, string> lambda = _ =>
    """
        SomeRawString
        """;

CallMethod(_ =>
    """
        SomeRawString
        """
);

var cast = (object)
    """
        SomeRawString
        """;

class ClassName
{
    string Property { get; } =
        """
            SomeRawString
            """;

    string Method() =>
        """
            SomeRawString
            """;
}
Fix: Warning about an unparseable csproj that is excluded by .csharpierignore #​1930

CSharpier reads every .csproj under the directory it is formatting to check for a version of CSharpier.MsBuild that does not match the version of the CLI. This includes files excluded by .csharpierignore. When one of those files could not be parsed, CSharpier logged a warning that did not explain why the file was being read.
The message is now logged at debug level and states that the file was read as part of the version check.

Fix: Member chain does not break when it follows a parenthesized expression that breaks #​1914
// input & expected output
var someVariable = (
    new SomeObject
    {
        Property1 = "",
        Property2 = "",
        Property3 = "",
    }
)
    .CallMethod()
    .CallMethod()
    .CallMethod()
    .CallMethod()
    .CallMethod()
    .CallMethod()
    .CallMethod();

// 1.4.0
var someVariable = (
    new SomeObject
    {
        Property1 = "",
        Property2 = "",
        Property3 = "",
    }
).CallMethod().CallMethod().CallMethod().CallMethod().CallMethod().CallMethod().CallMethod();
Fix: #region inside a disabled #if loses its indentation when another #if is in the file #​1840
// input & expected output

#if D1
public class A
{
    #region R
    class B { }
    #endregion
}

#endif

public class C
{

#if D2
    public int V;

#endif
}

// 1.4.0

#if D1
public class A
{

#region R
    class B { }

#endregion
}

#endif

public class C
{

#if D2
    public int V;

#endif
}

Full Changelog: belav/csharpier@1.4.0...1.4.1


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot requested a review from a team as a code owner November 22, 2026 01:33
@renovate renovate Bot added the dependency:nuget Indicates a pull request related to updating or managing NuGet package dependencies. label Nov 22, 2026
@renovate
renovate Bot requested a review from samtrion November 22, 2026 01:33
@renovate renovate Bot added the dependency:nuget Indicates a pull request related to updating or managing NuGet package dependencies. label Nov 22, 2026
@renovate
renovate Bot enabled auto-merge (squash) November 22, 2026 01:33
@codecov

codecov Bot commented Nov 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e64c56a) to head (05a0ad4).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #661   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines          261       261           
  Branches        38        38           
=========================================
  Hits           261       261           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@samtrion samtrion left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval by NetEvolve.Socks (v1.0.0.0)

@renovate
renovate Bot merged commit 54e85e5 into main Nov 22, 2026
13 checks passed
@renovate
renovate Bot deleted the renovate/csharpier.msbuild-1.x branch November 22, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency:nuget Indicates a pull request related to updating or managing NuGet package dependencies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant